<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org"
      xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a sec:authorize="hasRole('ROLE_TEST1_ADD')" href="#">增加</a>
<a sec:authorize="hasRole('ROLE_TEST1_UPDATE')" href="#">修改</a>
test1
</body>
</html>